define(['jquery'],function($){
    var Loader = function(){
    	if($('#container').length==0){
    		this.init();
    	}
    }
    Loader.prototype = {
        constructor:Loader,
        init:function(){
            var loadHtml = '<div id="container"><div id="loader8"></div></div>';
            this.body = document.getElementsByTagName('body')[0];
            this.loadContainer = document.createElement('div');
            this.loadDiv = document.createElement('div');
            this.loadContainer.id = "container";
            this.loadDiv.id="loader8";
            this.loadContainer.appendChild(this.loadDiv);
            this.body.appendChild(this.loadContainer);
        },
        remove:function(){
            //可以先渐隐消失再remove()
            $(this.loadContainer).fadeOut(60);
            $(this.loadContainer).remove();
        }
    }
    return Loader;
});